package com.ambulance.project.biz.controller.common;

import com.ambulance.framework.web.domain.AjaxResult;
import com.ambulance.project.manager.service.IBizPatientService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author RXL
 * @Date 2020/7/22 12:26
 * @Version 1.0
 */
@Api(tags = "生产患者")
@RestController
@RequestMapping(value = "/common/v1/patient", method = RequestMethod.POST)
public class ProductPatientController {

    @Autowired
    private IBizPatientService iBizPatientService;

    @ApiOperation(value = "模拟生成患者", notes = "模拟生成患者", produces = "application/json")
    @ApiResponses({
            @ApiResponse(code = 200, response = AjaxResult.class, message = "响应")
    })
    @RequestMapping(value = "/simulation")
    public AjaxResult simulationPatient() {
        iBizPatientService.insertBizPatientSimulation();
        return AjaxResult.success();
    }
}
